package com.t.bricks.bussiness.db.entity.bill.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;


import com.t.bricks.annotation.DataInfo;

/**
 * 账单'Bill'表实体类
 * 警告:非数据库字段禁止在此添加,应该创建扩展实体中添加
 * @author HuangXinBian
 * @DateTime 2021年07月23日 11:41:03
 */
@ApiModel("账单Bill")
@DataInfo(sDbName="BricksSafe", sTableName="Bill")
public class BillBase implements Serializable {

	private static final long serialVersionUID = 1L;// 使用rmi时需修改

	/**
	 * 记录编号
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="Bill",
		sName="sId", sComment="记录编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=true, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=0 )
	@ApiModelProperty(value="记录编号", example="")
	//[end]
	protected String sId;

	/**
	 * 账目类型
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="Bill",
		sName="sType", sComment="账目类型", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=50, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=1 )
	@ApiModelProperty(value="账目类型", example="")
	//[end]
	protected String sType;

	/**
	 * 账目名称
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="Bill",
		sName="sName", sComment="账目名称", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=2 )
	@ApiModelProperty(value="账目名称", example="")
	//[end]
	protected String sName;

	/**
	 * 消费时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="Bill",
		sName="dTime", sComment="消费时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=3 )
	@ApiModelProperty(value="消费时间", example="")
	//[end]
	protected Date dTime;
	
	/**
	 * 购买单价
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="Bill",
		sName="mUnitPrice", sComment="购买单价", isDbField=true, sDbFileType="decimal",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=4, iDecimalLength=2, iIndex=4 )
	@ApiModelProperty(value="购买单价", example="")
	//[end]
	protected BigDecimal mUnitPrice;

	/**
	 * 购买数量
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="Bill",
		sName="iCount", sComment="购买数量", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=5 )
	@ApiModelProperty(value="购买数量", example="1")
	//[end]
	protected Integer iCount;
	
	/**
	 * 总价
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="Bill",
		sName="mTotalPrice", sComment="总价", isDbField=true, sDbFileType="decimal",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=10, isDecimal=false, iIntegralLength=6, iDecimalLength=2, iIndex=6 )
	@ApiModelProperty(value="总价", example="")
	//[end]
	protected BigDecimal mTotalPrice;
	
	/**
	 * 市场单价
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="Bill",
		sName="mMarketPrice", sComment="市场单价", isDbField=true, sDbFileType="decimal",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=4, iDecimalLength=2, iIndex=7 )
	@ApiModelProperty(value="市场单价", example="")
	//[end]
	protected BigDecimal mMarketPrice;
	
	/**
	 * 省钱
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="Bill",
		sName="mTotalSave", sComment="省钱", isDbField=true, sDbFileType="decimal",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=10, isDecimal=false, iIntegralLength=6, iDecimalLength=2, iIndex=8 )
	@ApiModelProperty(value="省钱", example="")
	//[end]
	protected BigDecimal mTotalSave;

	/**
	 * 备注
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="Bill",
		sName="sMemo", sComment="备注", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=200, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=9 )
	@ApiModelProperty(value="备注", example="")
	//[end]
	protected String sMemo;

	/**
	 * 创建者
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="Bill",
		sName="sCreator", sComment="创建者", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=10 )
	@ApiModelProperty(value="创建者", example="")
	//[end]
	protected String sCreator;

	/**
	 * 创建时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="Bill",
		sName="dCreateDate", sComment="创建时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=11 )
	@ApiModelProperty(value="创建时间", example="")
	//[end]
	protected Date dCreateDate;

	/**
	 * 修改人
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="Bill",
		sName="sModifieder", sComment="修改人", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=12 )
	@ApiModelProperty(value="修改人", example="")
	//[end]
	protected String sModifieder;

	/**
	 * 修改时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="Bill",
		sName="dModifiedDate", sComment="修改时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=13 )
	@ApiModelProperty(value="修改时间", example="")
	//[end]
	protected Date dModifiedDate;

	/**
	 * 状态
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="Bill",
		sName="iState", sComment="状态", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=1, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=14 )
	@ApiModelProperty(value="状态", example="1")
	//[end]
	protected Integer iState;

	/**
	 * 序号
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="Bill",
		sName="iIndex", sComment="序号", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=15 )
	@ApiModelProperty(value="序号", example="1")
	//[end]
	protected Integer iIndex;

	/**
	 * 版本号
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="Bill",
		sName="iVersion", sComment="版本号", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=16 )
	@ApiModelProperty(value="版本号", example="1")
	//[end]
	protected Integer iVersion;

	/**
	 * 取 记录编号
	 * @return String
	 */
	public String getsId() {
		return sId;
	}

	/**
	 * 设置记录编号
	 * @param sId
	 */
	public void setsId(String sId) {
		this.sId = sId;
	}

	/**
	 * 取 账目类型
	 * @return String
	 */
	public String getsType() {
		return sType;
	}

	/**
	 * 设置账目类型
	 * @param sType
	 */
	public void setsType(String sType) {
		this.sType = sType;
	}

	/**
	 * 取 账目名称
	 * @return String
	 */
	public String getsName() {
		return sName;
	}

	/**
	 * 设置账目名称
	 * @param sName
	 */
	public void setsName(String sName) {
		this.sName = sName;
	}

	/**
	 * 取 消费时间
	 * @return Date
	 */
	public Date getdTime() {
		return dTime;
	}

	/**
	 * 设置消费时间
	 * @param dTime
	 */
	public void setdTime(Date dTime) {
		this.dTime = dTime;
	}

	/**
	 * 取 购买单价
	 * @return Long
	 */
	public BigDecimal getmUnitPrice() {
		return mUnitPrice;
	}

	/**
	 * 设置 购买单价
	 * @param mUnitPrice
	 */
	public void setmUnitPrice(BigDecimal mUnitPrice) {
		this.mUnitPrice = mUnitPrice;
	}

	/**
	 * 取 购买数量
	 * @return Integer
	 */
	public Integer getiCount() {
		return iCount;
	}

	/**
	 * 设置购买数量
	 * @param iCount
	 */
	public void setiCount(Integer iCount) {
		this.iCount = iCount;
	}

	/**
	 * 取 总价
	 * @return Long
	 */
	public BigDecimal getmTotalPrice() {
		return mTotalPrice;
	}

	/**
	 * 设置 总价
	 * @param mTotalPrice
	 */
	public void setmTotalPrice(BigDecimal mTotalPrice) {
		this.mTotalPrice = mTotalPrice;
	}

	/**
	 * 取 市场单价
	 * @return Long
	 */
	public BigDecimal getmMarketPrice() {
		return mMarketPrice;
	}

	/**
	 * 设置 市场单价
	 * @param mMarketPrice
	 */
	public void setmMarketPrice(BigDecimal mMarketPrice) {
		this.mMarketPrice = mMarketPrice;
	}

	/**
	 * 取 省钱
	 * @return Long
	 */
	public BigDecimal getmTotalSave() {
		return mTotalSave;
	}

	/**
	 * 设置 省钱
	 * @param mTotalSave
	 */
	public void setmTotalSave(BigDecimal mTotalSave) {
		this.mTotalSave = mTotalSave;
	}

	/**
	 * 取 备注
	 * @return String
	 */
	public String getsMemo() {
		return sMemo;
	}

	/**
	 * 设置备注
	 * @param sMemo
	 */
	public void setsMemo(String sMemo) {
		this.sMemo = sMemo;
	}

	/**
	 * 取 创建者
	 * @return String
	 */
	public String getsCreator() {
		return sCreator;
	}

	/**
	 * 设置创建者
	 * @param sCreator
	 */
	public void setsCreator(String sCreator) {
		this.sCreator = sCreator;
	}

	/**
	 * 取 创建时间
	 * @return Date
	 */
	public Date getdCreateDate() {
		return dCreateDate;
	}

	/**
	 * 设置创建时间
	 * @param dCreateDate
	 */
	public void setdCreateDate(Date dCreateDate) {
		this.dCreateDate = dCreateDate;
	}

	/**
	 * 取 修改人
	 * @return String
	 */
	public String getsModifieder() {
		return sModifieder;
	}

	/**
	 * 设置修改人
	 * @param sModifieder
	 */
	public void setsModifieder(String sModifieder) {
		this.sModifieder = sModifieder;
	}

	/**
	 * 取 修改时间
	 * @return Date
	 */
	public Date getdModifiedDate() {
		return dModifiedDate;
	}

	/**
	 * 设置修改时间
	 * @param dModifiedDate
	 */
	public void setdModifiedDate(Date dModifiedDate) {
		this.dModifiedDate = dModifiedDate;
	}

	/**
	 * 取 状态
	 * @return Integer
	 */
	public Integer getiState() {
		return iState;
	}

	/**
	 * 设置状态
	 * @param iState
	 */
	public void setiState(Integer iState) {
		this.iState = iState;
	}

	/**
	 * 取 序号
	 * @return Integer
	 */
	public Integer getiIndex() {
		return iIndex;
	}

	/**
	 * 设置序号
	 * @param iIndex
	 */
	public void setiIndex(Integer iIndex) {
		this.iIndex = iIndex;
	}

	/**
	 * 取 版本号
	 * @return Integer
	 */
	public Integer getiVersion() {
		return iVersion;
	}

	/**
	 * 设置版本号
	 * @param iVersion
	 */
	public void setiVersion(Integer iVersion) {
		this.iVersion = iVersion;
	}

}
